package com.jinlia.show.modules.system.controller;

import com.jinlia.show.modules.base.system.entity.LabelRel;
import com.jinlia.show.modules.base.system.service.LabelRelMapperService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * 标签管理器
 */
@RestController
@RequestMapping("/label/rel")
public class LabelRelController {
    @Autowired
    private LabelRelMapperService labelRelMapperService;




    /**
     * 新增标签
     *
     * @return
     */
    @PostMapping("add")
    public LabelRel addLabelRel(@RequestBody LabelRel labelRel) {
        labelRel = labelRelMapperService.addLabelRel(labelRel);
        return labelRel;
    }
    @PostMapping("del")
    public LabelRel delLabelRel(@RequestBody LabelRel labelRel) {
        labelRel = labelRelMapperService.delLabelRel(labelRel);
        return labelRel;
    }
}
